package com.wicket.okrbff.biz.service.dto.res;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffConfSchemeItemResultDto
 * @使用场景
 */
@Data
public class BffConfSchemeItemResultDto implements Serializable {

    /**
     * 配置方案ID:
     */
    @ApiModelProperty("配置方案ID ")
    private String confSchemeId;

    /**
     * 标题文案:
     */
    @ApiModelProperty("标题文案")
    private String headCopywriter;

    /**
     * 模板方案简述:
     */
    @ApiModelProperty("模板方案简述")
    private String themeSchemeSketch;

    /**
     * 按钮提示文案:
     */
    @ApiModelProperty("按钮提示文案")
    private String buttonCopywriter;
    /**
     * 结果值:
     */
    @ApiModelProperty("结果值")
    private String endValue;
    /**
     * 配置项标识:
     */
    @ApiModelProperty("配置项标识")
    private String confItemCode;
    /**
     * 结果类型:
     */
    @ApiModelProperty("结果类型")
    private String resultType;
    /**
     * 选项类型:
     */
    @NotNull(message = "选项类型不能为空")
    @ApiModelProperty("选项类型")
    private String optionType;
    /**
     * 配置选项标识:
     */
    @NotNull(message = "配置选项标识不能为空")
    @ApiModelProperty("配置选项标识")
    private String confOptionCode;
    /**
     * 冗余配置选项名称:
     */
    @ApiModelProperty("冗余配置选项名称")
    private String confOptionName;
    /**
     * 配置项下选项关系ID:
     */
    @NotNull(message = "配置项下选项关系ID 不能为空")
    @ApiModelProperty("配置项下选项关系ID ")
    private String confOptionRshipId;
    /**
     * 所属配置项分组标识:
     */
    @NotNull(message = "所属配置项分组标识不能为空")
    @ApiModelProperty("所属配置项分组标识")
    private String confItemClassCode;
    /**
     * 冗余配置项简称:
     */
    @ApiModelProperty("冗余配置项简称")
    private String shortName;
    /**
     * 配置方案标识:
     */
    @NotNull(message = "配置方案标识不能为空")
    @ApiModelProperty("配置方案标识")
    private String confSchemeCode;
    /**
     * 分组名称:
     */
    @NotNull(message = "分组名称不能为空")
    @ApiModelProperty("分组名称")
    private String confItemClassName;
    /**
     * 配置方案名称:
     */
    @NotNull(message = "配置方案名称不能为空")
    @ApiModelProperty("配置方案名称")
    private String confSchemeName;
    /**
     * 是否初始方案:
     */
    @NotNull(message = "是否初始方案不能为空")
    @ApiModelProperty("是否初始方案")
    private String isInitialScheme;
/**
     * 扩展字段1 
     */
    @ApiModelProperty("图标地址")
    private String	 extensionField1;

    /**
     * 扩展字段2 
     */
    @ApiModelProperty("菜单地址")
    private String	 extensionField2;
/**
     * 部门业务身份标识 
     */
    @ApiModelProperty("部门业务身份标识")
    private String	 deptBusinessIdentityCode;

    /**
     * 部门业务身份名称 
     */
    @ApiModelProperty("部门业务身份名称")
    private String	 deptBusinessIdentityName;


    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffConfSchemeItemResultDto that = (BffConfSchemeItemResultDto) o;
      return  confSchemeId == that.confSchemeId&&headCopywriter == that.headCopywriter&&themeSchemeSketch == that.themeSchemeSketch&&buttonCopywriter == that.buttonCopywriter&&endValue == that.endValue&&confItemCode == that.confItemCode&&resultType == that.resultType&&optionType == that.optionType&&confOptionCode == that.confOptionCode&&confOptionName == that.confOptionName&&confOptionRshipId == that.confOptionRshipId&&confItemClassCode == that.confItemClassCode&&shortName == that.shortName&&confSchemeCode == that.confSchemeCode&&confItemClassName == that.confItemClassName&&confSchemeName == that.confSchemeName&&isInitialScheme == that.isInitialScheme&&extensionField1 == that.extensionField1&&extensionField2 == that.extensionField2&&deptBusinessIdentityCode == that.deptBusinessIdentityCode&&deptBusinessIdentityName == that.deptBusinessIdentityName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), confSchemeId,headCopywriter,themeSchemeSketch,buttonCopywriter,endValue,confItemCode,resultType,optionType,confOptionCode,confOptionName,confOptionRshipId,confItemClassCode,shortName,confSchemeCode,confItemClassName,confSchemeName,isInitialScheme,extensionField1,extensionField2,deptBusinessIdentityCode,deptBusinessIdentityName);
    }
}
